//
//  EntertainmentModel.m
//  BobNews
//
//  Created by lanou3g on 16/5/5.
//  Copyright © 2016年 YJC. All rights reserved.
//

#import "EntertainmentModel.h"
#import "ImageModel.h"
#import "MulImageModel.h"

@implementation EntertainmentModel
+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary {
    NSString *imgsrc = dictionary[@"imgextra"];
    if (!imgsrc) {
        ImageModel *imageModel = [[ImageModel alloc]init];
        [imageModel setValuesForKeysWithDictionary:dictionary];
        return imageModel;
    }else{
    MulImageModel *mulModel = [[MulImageModel alloc]init];
    [mulModel setValuesForKeysWithDictionary:dictionary];
    return mulModel;
    }
//}
    return nil;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
@end
